<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/popen.css" />
<script type="text/javascript" src="js/global.js"></script>
<style type="text/css">
img
{
	cursor:pointer;
}
.piclist_default
{
	text-align:center;
	width:20%;
	height:94px;
	border:1px #D4D4D4 solid;
	cursor:pointer;
}
</style>
<script type="text/javascript">
if(qgIE == "IE" || qgIE == "IE6")
{
	var thumbId = window.parent.dialogArguments.document.getElementById("thumb2");
	var delThumb = window.parent.dialogArguments.document.getElementById("del_thumb2");
	var rsdimg2 = window.parent.dialogArguments.document.getElementById("rsdimg2");
}
else
{
	var thumbId = window.parent.opener.document.getElementById("thumb2");
	var delThumb = window.parent.opener.document.getElementById("del_thumb2");
	var rsdimg2 = window.parent.opener.document.getElementById("rsdimg2");
}
function ok()
{
	return true;
}
function update_this(id,mid,pic)
{
	var count_pic = "{:count($piclist)}";
	for(i=0;i<count_pic;i++)
	{
		var idname = "qg_img_"+i;
		if(idname == mid)
		{
			document.getElementById(idname).style.border="1px #ff0000 dashed";
		}
		else
		{
			document.getElementById(idname).style.border="1px #d4d4d4 solid";
		}
	}
	thumbId.value = id;
	delThumb.style.display = "";
	rsdimg2.src = pic;
	rsdimg2.style.height = "100px";
}
function check_upfile()
{
	uploading();
}
function uploading()
{
	document.getElementById("upbtn").value="上传中...";
	document.getElementById("upbtn").disabled=true;
}
</script>
</head>
<body>
<table width="100%" cellpadding="0" cellspacing="1">
<tr>
	<form method="post" name="form" action="{:$mainlink}?file=open.addthumb2&act=addok&sysgroupid={:$sysgroupid}" enctype="multipart/form-data" onsubmit="return check_upfile()">
	<td><input type="file" name="iframeUpload"> <input type="submit" value="上传"></td>
	</form>
    
	<form method="post" name="form" action="{:$mainlink}?file=open.addthumb2&act=add" >
	<td><input type="text" name="keywords" style="height:14px;" /><input name="submit" type="submit" value="搜索" /></td>
	</form>
</tr>
</table>
<input type="hidden" name="thumb_id2" id="thumb_id2" value="0">
<table width="100%">
<tr>
	<!-- $piclist AS $key=>$value -->
	<td class="piclist_default" align="center" id="qg_img_{:$key}" onclick="update_this('{:$value[id]}','qg_img_{:$key}','{:$value[show_pic]}');"><img src="{:$value[show_pic]}" title="{:$value[tmpname]}" alt="{:$value[tmpname]}" width="90px" height="80px" border="0" /><br /><strong>{:$value[tmpname3]}</strong></td>
	<!-- row:5 -->
	<!-- end -->
</tr>
</table>
<!-- if($pagelist) -->
<div align="right" style="padding-right:2px;">
{:$pagelist}
</div>
<!-- end -->
</body>
</html>